#ifndef __XMPQUICKTEST_ENVIRONMENTHANDLER_H__
#define __XMPQUICKTEST_ENVIRONMENTHANDLER_H__
#include "common.h"

#ifdef _UNICODE
typedef std::wstring tstring;
#else
typedef std::string tstring;
#endif

class CEnvironmentHandler
{

private:
	CEnvironmentHandler();
	
public:
	static CEnvironmentHandler& Instance()
	{
		static CEnvironmentHandler _ins;
		return _ins;
	}

public:
	bool		Initialize();

	tstring&	GetXMPQTDll();
	tstring&	GetXMPQTIniFile();
	tstring&	GetXmpQtTempPath();

private:
	bool		DeployXLUEFile();
	bool		DeployXarFile();
	bool		DeployXMPPlugin();
private:
	tstring m_szUrlPath;
	tstring m_szXmpQtTempPath;
	tstring m_szIniFilePathName;
	tstring m_szDllFilePathName;

};



#endif